finding the sum of coefficients of a polynomial